using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using ShopPowerTemplate.IoC;
using ShopPowerTemplate.Entities;
using ShopPowerTemplate.Services.Tests.Properties;

namespace ShopPowerTemplate.Services.Tests
{
    public partial class AppSettingsServiceUtil
    {
	
		static internal IAppSettingsService CreateAppSettingsService()
        {
            IAppSettingsService target = IoCFactory.Resolve<IAppSettingsService>();
            return target;
        }
				#region AppSettings Test
 
        

		public static AppSettings CreateAppSettings()
        {
            AppSettings result = GetAppSettings();
            IAppSettingsService service = CreateAppSettingsService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
		
		public static AppSettings CreateAppSettingsFull()
        {
            AppSettings result = GetAppSettingsFull();
            IAppSettingsService service = CreateAppSettingsService();
			service.Add(result);

			result = service.Find(result.Id);
            return result;
        }
				
        public static AppSettings GetAppSettings()
        {
            AppSettings result = new AppSettings();
			
            result.AppKey = Guid.NewGuid().ToString();

            result.AppValue = Guid.NewGuid().ToString();
 
            return result;
            
        }
		
        public static AppSettings GetAppSettingsFull()
        {
            AppSettings result = GetAppSettings();
             
            return result;
            
        }
		
		#endregion AppSettings Test
	

	}
}
